<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>修改信息</title>
    <link href="/back/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/back/css/select.css" rel="stylesheet" type="text/css" />
    <link href="/back/js/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
</head>
<body>
<div class="formbody">
    <div class="formtitle"><span>基本信息</span></div>
    <form id = "from">
        <input type="hidden" name="chizhuzaixiangId"  value="${chizhuzaixiang.chizhuzaixiangId?c}"/>
        <ul class="forminfo">
            <li><label>标题<b>*</b></label><input maxlength="30" id="title" name="title" type="text"
                                                value="${chizhuzaixiang.title!''}"  class="dfinput" /><i>名称请控制在30个字以内</i></li>
            <li><label>来源<b>*</b></label><input maxlength="30" id="resource" name="resource" value="${chizhuzaixiang.resource!''}" type="text" class="dfinput" /><i>名称请控制在30个字以内</i></li>
<li><label>描述</label>
    <textarea id="chizhuzaixiangDec" name="chizhuzaixiangDec" rows="3" cols="100" class="textinput" >${chizhuzaixiang.chizhuzaixiangDec!''}</textarea>
</li>
<li><label>封面<b>*</b></label>
    <input type="button" class="btn onePicUpload" value="上传图片" />
    <input type="hidden" id="cover" name="cover" value="${chizhuzaixiang.cover!''}"/>
    <a href="${chizhuzaixiang.cover!''}" target="_blank">
        <img src="${chizhuzaixiang.cover!''}" width="80" height="50"></a>

</li>
<li><label>内容<b>*</b></label>
    <textarea id="content" name="content" style="width: 700px; height: 250px; visibility: hidden;" >${content.content!''}</textarea>
</li>
<li><label>&nbsp;</label><input type="button" class="btn" value="确认" onclick="if(chek()) submitForm('/manager/chizhuzaixiang/update','from');" /></li>
</ul>
</form>
</div>
<script src="/back/js/jquery.js" language="JavaScript" ></script>
<script type="text/javascript" src="/back/js/select-ui.min.js"></script>

<!-- 弹窗js -->
<script src="/back/js/layer/layer.js"></script>
<script src="/back/js/base.js"></script>
<!-- 富文本，上传啥的 -->
<script type="text/javascript" src="/back/js/kindeditor/kindeditor-all.js"></script>
<script type="text/javascript" src="/back/js/kindeditor/lang/zh-CN.js"></script>
<script charset="utf-8" src="/back/js/kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript" src="/back/js/kindeditor/kindeditor-base.js"></script>
<script type="text/javascript" src="/back/js/kindeditorJs/xunyou_kindeditor.js"></script>
<script type="text/javascript">

    $(document).ready(function(e) {
        $(".select3").uedSelect({
            width : 100
        });
    });

    var content;
    //页面初始化完毕后执行此方法
    $(function(){

        //初始化类目选择和图片上传器
        E3.initOnePicUpload();
        //创建富文本编辑器
        content = E3.createEditor("#from [id=content]");
    });


    function chek(){
        content.sync();
        var parameter = ["title","cover"];
        var type = [null];
        var msg = ["标题不能为空！","封面必须添加！"];
        return validation(parameter,type,msg);
    }
</script>
</body>
</html>
